<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
  <script src="ckeditor/sample-css/sample.js" type="text/javascript"></script>
  <link href="ckeditor/sample-css/sample.css" rel="stylesheet" type="text/css" />
<title><s:message code="app.title"/></title>
</head>
<body>
  <H1><s:message code="label.panel.${panel.id}"/></H1>
  <form:form action="save-panel.do" method="post" commandName="panel">
    <form:hidden path="key"/>
  	<form:hidden path="id"/>
  	<form:hidden path="type"/>
    <textarea class="ckeditor" cols="40" name="content" rows="10">${panel.content.value}</textarea>
	<br />
	<input type="submit" value='<s:message code="label.SaveAndClose"/>' />
<%-- 	<input type="button" value='<s:message code="label.cancel"/>'/> --%>
<%-- 	<button><a href="home.html"><s:message code="label.cancel"/></a></button> --%>
	<button onclick='home.html'><s:message code="label.cancel"/></button>
  </form:form>
</body>
</html>